package com.zy.mybatis.service.impl;

import com.zy.mybatis.dao.BookDao;
import com.zy.mybatis.entity.Book;
import com.zy.mybatis.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BookServiceImpl implements BookService {

    @Autowired
    private BookDao bookDao;
    @Override
    public List<Book> findBooks() {
        return bookDao.findBooks();
    }
}
